package dbops;

import java.util.ArrayList;

/**
 * Description   : Functional Test Script
 * @author angel.tsvetkov
 */

/**
 * DataTable is a class which purpose is to represent a DB table with all possible
 * properties which a table can have: 
 * - columns - list of all columns
 * - rows - list of all rows
 */
public class DataTable
{
	ArrayList<COLUMN> columns = null;

	ArrayList<ROW> rows = null;

	public DataTable()
	{
		columns = new ArrayList<COLUMN>();
		rows = new ArrayList<ROW>();
	}
	
	public void setColumns(ArrayList<COLUMN> columns) {
		this.columns = columns;
	}
	
	public void setRows(ArrayList<ROW> rows) {
		this.rows = rows;
	}
	
	public ArrayList<ROW> getRows() {
		return rows;
	}
	
	public ArrayList<COLUMN> getColumns() {
		return columns;
	}
	
	public int getColumnsCount()
	{
		return columns.size();
	}
	
	public int getRowsCount()
	{
		return rows.size();
	}
}

